package com.ufox.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.ufox.entity.Products;
import com.baomidou.mybatisplus.extension.service.IService;
import com.ufox.entity.Result;
import com.ufox.req.ProductsCondREQ;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author 优狐科技-www.hbufox.com
 * @since 2022-06-09
 */
public interface IProductsService extends IService<Products> {

    boolean findProdById(String id);

    Page<Products> selectAllByCond(Page<Products> pageInfo, ProductsCondREQ productsCond);


    Page<Products> findProdByUser(String id, Page<Products> pageInfo, ProductsCondREQ productsCond);

    boolean updateProdStateById(String state,String id);

    Result saveAndUpdate(Products products);

    Result selectProductsByTypeId(IPage<Products> pageInfo, String typeid);

    Result selectDetailById(String id);

    Result selectProductsByName(IPage<Products> pageInfo, String name);
}
